//
//  UIColor+Category.h
//  LNUniversal
//
//  Created by liu nian on 15/5/25.
//  Copyright (c) 2015年 Liu Nian site:http://iliunian.com. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIColor (Category)

/**
 *  根据16进制和alpha计算UIColor eg:[NWUtility colorWithHex:0x000000 alpha:1.0F]
 *
 *  @param hexCode 16进制色值 0x000000
 *  @param alpha   透明度
 *
 *  @return UIColor
 */
+ (UIColor *)HEX2Color:(NSInteger)hexCode inAlpha:(CGFloat)alpha;

+ (UIColor *)colorWithHex:(NSInteger)hexCode;
+ (UIColor *)colorWithHex:(NSInteger)hexCode alpha:(CGFloat)alpha;
+ (UIColor *)colorWithRandom;
@end
